//
//  UserManager.h
//  SPDemo
//
//  Created by Sailer Guo on 2020/1/6.
//  Copyright © 2020 Sailer Guo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SPUserInfoModel.h"
#import <ReactiveObjC/ReactiveObjC.h>

NS_ASSUME_NONNULL_BEGIN



@interface LoginManager : NSObject

@property (nonatomic,strong,readonly) SPUserInfoModel *userInfo;

// 全局只能在这一个地方调用登录
- (RACSignal *)userLogin:(NSString *)account pwd:(NSString *)pwd;

// 全局只能在这一个地方调用登出
- (RACSignal *)loginOut;

@end

NS_ASSUME_NONNULL_END
